package CtrLayer;

import java.util.ArrayList;

import DataLayer.Model.DelOrdre;
import DataLayer.Model.Service;

public interface IFPaintingCtr
{
	// Create an empty ServiceOrdre
	public void startPaintingOrdre();

	// Get ServiceOrdre
	public void setPaintingOrdre(int ordreId);

	// Get all servicer
	public ArrayList<Service> getAllService(boolean synlig);

	// Get all added servicer
	public ArrayList<DelOrdre> getAllDelOrdre();

	// Add selected service to order
	public void addService(int antal, Service s);

	// Creates and adds EkstraService to order
	public void addEkstraService(int delOrdreId, String beskrivelse, double pris) throws Exception;

	// Get part order by part order id
	public DelOrdre getDelOrdre(int delOrdreId);

	// Update a service line
	public void updateServiceAntal(int delOrdreId, int antal, int serviceId);

	// Remove a service from order
	public void removeServiceOrEkstra(int delOrdreId, String standard);

	// Insert the order into the database.
	public void commitPaintingOrdre() throws Exception;
}